<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="cn.ac.cintcm.dataconverge.dataAnalyze.form.*,cn.ac.cintcm.dataconverge.researcher.domain.*,
java.util.Map.Entry,com.hs.core.page.PageUtil,com.hs.core.utils.StringUtilTool,cn.ac.cintcm.dataconverge.util.Constants" %>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
 
List allOrg = (List)request.getAttribute("allOrg"); 

String subjectYear = (String)request.getAttribute("subjectYear");
String orgid = (String)request.getAttribute("orgId");
String orgRole = (String)request.getAttribute("orgRole");
String state = (String)request.getAttribute("state");
String subjectTag = (String)request.getAttribute("subjectTag");
String startdate = (String)request.getAttribute("startdate");
String enddate = (String)request.getAttribute("enddate");

String graphURLAge = (String)request.getAttribute("graphURLAge");
String graphURLZhi = (String)request.getAttribute("graphURLZhi");
String graphURLQua = (String)request.getAttribute("graphURLQua");
String graphURLKeySubject = (String)request.getAttribute("graphURLKeySubject");
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns:tvns>
<head>
   <link href="<%=basePath%>index/Themes/com/style.css" rel="stylesheet" type="text/css" />
    <script src="<%=basePath%>index/Scripts/Script.js" language="javascript" type="text/javascript"></script>
     <script src="<%=basePath%>js/common.js" language="javascript" type="text/javascript"></script>
<script language="javascript" type="text/javascript" src="<%=path %>/js/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript"> 

function statRes(){

searchform.submit();
}
</script>
</head>
<body scroll="yes">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
        <tr>
            <td>
               <form name="searchform" action = "<%=path%>/researcherAnalyze.htm?action=resStat" method="post">
    <div class="r_rtm_tb_mg1">
        <div class="r_rtm_tb1">
            <span>
                <img src="<%=path%>/index/Themes/com/idt_tb_pass.gif" />&nbsp;&nbsp;人员统计</span>
        </div>
    </div>  
     <table cellspacing="2" cellpadding="0" width="100%" class="idt_item_mg" id="Table2">
        <tr>
            <td class="fim_l" width="10%">
                参与单位</td>
            <td class="fim_r"  width="40%">
                <select name="orgId">
                  <option value="0">-----请选择统计单位-----</option>
                  <%if(allOrg != null && allOrg.size()>0){
                	   for(int m = 0;m<allOrg.size();m++){
                		   Organization org = (Organization)allOrg.get(m);
                		   out.print("<option value=" + org.getId());
                		   if((org.getId()+"").equals(orgid))
                			   out.print( " selected");
                		   out.print(">");
                		   out.print(org.getName());
                		   out.print("</option>");
                	   }
                	  
                  }  %> 
                </select> &nbsp;
                <select name="orgRole">
		    		<option value="0">---请选择单位角色---</option>
		      		<option value="<%=Constants.org_role_leader %>" <%if(Constants.org_role_leader.equals(orgRole)){out.print(" selected");} %>>责任单位</option>
		      		<option value="<%=Constants.org_role_participant %>" <%if(Constants.org_role_participant.equals(orgRole)){out.print(" selected");} %>>联合单位</option>
		    	</select>
                
                </td>
            <td class="fim_l" width="10%">
               填报报日期</td>
            <td class="fim_r" nowrap  colspan="2">
                 从
               <input type="text" class="Wdate" id="startdate" value="<%=startdate==null?"":startdate %>" style="width:40%" name="startdate"  onFocus="WdatePicker({el:'startdate',dateFmt:'yyyy-MM-dd'})" />
                &nbsp;至
               <input type="text" class="Wdate" id="enddate" value="<%=enddate==null?"":enddate %>" style="width:40%" name="enddate"  onFocus="WdatePicker({el:'enddate',dateFmt:'yyyy-MM-dd'})" />
            </td> 
        </tr>
        <tr>
            <td class="fim_l">
                状态：</td>
            <td class="fim_r" colspan="3">
                  <select name="status" style="width:100%">
                 <option value="-1">----请选择----</option>
                  <option value="<%=Constants.subject_state_save%>" <%if((""+Constants.subject_state_save).equals(state)){out.println(" selected");} %>>未审核</option>
                 <option value="<%=Constants.subject_state_checked%>" <%if((""+Constants.subject_state_checked).equals(state)){out.println(" selected");} %>>审核中</option> 
                  <option value="<%=Constants.subject_state_researching%>" <%if((""+Constants.subject_state_researching).equals(state)){out.println(" selected");} %>>已审核</option>
                  
                   <option value="<%=Constants.subject_state_ended%>" <%if((""+Constants.subject_state_ended).equals(state)){out.println(" selected");} %>>已结题</option> 
                 
                </select>  
            </td>
             
            <td class="fim_r" align="center"  >
                <input type="button" value="统计"  onclick="statRes()" class="com_btn2" id="Button5">
            </td>
        </tr>
        
    </table> 
            </td>
        </tr>
        </form>
    </table>
     <table cellspacing="0" cellpadding="0" width="100%" class="idt_bottom_mg" border="0">
          <tr>
              <td align="center"> 
              <img src="<%=graphURLAge%>" style="width:99%"></img>
              </td>
              <td align="center"> 
              
               <img src="<%=graphURLQua%>" style="width:99%"></img>
              </td> 
          </tr>
          <!--tr>
              <td align="center"> 
               
              <img src="<%=graphURLZhi%>" style="width:99%"></img>
              </td>
              <td align="center"> 
               
              <img src="<%=graphURLKeySubject%>" style="width:99%"></img>
              </td-->
              
          </tr>
    </table>
    <table cellspacing="0" cellpadding="0" width="100%" class="idt_bottom_mg" border="0">
          <tr>
              <td align="right">
                   
              </td>
          </tr>
     </table>
</body>
</html>
